<template>
  <div class="service-centre">
    <van-nav-bar title="客服中心" />
    <h6>常见问题</h6>
    <van-cell
      icon="cash-back-record"
      title="优惠券问题"
      is-link
      @click="showServices = true"
    ></van-cell>
    <van-cell
      icon="cash-back-record"
      title="卡问题"
      is-link
      @click="showServices = true"
    ></van-cell>
    <van-cell
      icon="notes-o"
      title="保洁订单问题"
      is-link
      @click="showServices = true"
    ></van-cell>
    <van-cell
      icon="pending-payment"
      title="账户信息问题"
      is-link
      @click="showServices = true"
    ></van-cell>
    <h6>更多问题分类</h6>
    <van-row>
      <van-col span="12" @click="showServicesMore = true">
        <div class="clean-keeping">保洁</div>
        <div class="service-keeping">订单信息/优惠券/卡咨询</div>
      </van-col>
      <van-col span="12">
        <div class="clean-keeping">保姆/育儿嫂</div>
        <div class="service-keeping">售前咨询/售后服务</div>
      </van-col>
      <van-col span="12">
        <div class="clean-keeping">家具/家居清洗</div>
        <div class="service-keeping">咨询/订单信息/售后服务</div>
      </van-col>
      <van-col span="12">
        <div class="clean-keeping">月嫂</div>
        <div class="service-keeping">售前咨询/售后服务</div>
      </van-col>
      <van-col span="12">
        <div class="clean-keeping">搬家/维修/安装</div>
        <div class="service-keeping">咨询/订单信息/售后服务</div>
      </van-col>
      <van-col span="12">
        <div class="clean-keeping">平台其他服务</div>
        <div class="service-keeping">咨询/订单信息/售后服务</div>
      </van-col>
    </van-row>
    <van-cell icon="warn-o" title="知识产权投诉" is-link></van-cell>
    <!-- 常见问题弹出层 -->
    <van-popup
      v-model="showServices"
      closeable
      close-icon-position="top-left"
      close-icon="arrow-left"
      position="right"
      :style="{ height: '100%', width: '100%' }"
    >
      <service-comitem v-if="showServices"
    /></van-popup>
    <!-- 更多问题弹出层 -->
    <van-popup
      v-model="showServicesMore"
      closeable
      close-icon-position="top-left"
      close-icon="arrow-left"
      position="right"
      :style="{ height: '100%', width: '100%' }"
    >
      <service-more v-if="showServicesMore"
    /></van-popup>
  </div>
</template>

<script>
import serviceComitem from "./service-components/service-components";
import serviceMore from "./service-components/service-more";
export default {
  name: "serviceCentre",
  components: {
    serviceComitem,
    serviceMore
  },
  data() {
    return {
      // 常见问题弹出层
      showServices: false,
      // 更多问题弹出层
      showServicesMore: false
    };
  },
  created() {},
  mounted() {},
  methods: {}
};
</script>

<style scoped lang="less">
* {
  box-sizing: border-box;
}
.service-centre {
  .van-nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
  }
  height: 100%;
  background-color: #ededed;
  padding-top: 45px;
  /deep/.van-nav-bar__title {
    font-weight: 600;
  }
  h6 {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin: 8px;
  }
  .van-cell {
    height: 45px;
    padding: 10px;
    .van-cell__left-icon {
      font-size: 25px;
      margin-right: 8px;
      padding-bottom: 5px;
    }
    .van-cell__title {
      padding-top: 1px;
    }
  }
  .van-row {
    background-color: #fff;
    width: 100%;
    margin-bottom: 10px;
    .van-col {
      padding: 12px 0 0 18px;
      height: 67px;
      border-bottom: 1px solid #ededed;
      border-right: 1px solid #ededed;
      .clean-keeping {
        font-size: 15px;
        margin-bottom: 5px;
      }
      .service-keeping {
        font-size: 12px;
        color: #888;
      }
    }
  }
}
</style>
